#!/bin/bash
hostname=`hostname`
sudo sed -i "s/\"pool_password\" \: .*,/\"pool_password\" : \"$hostname:melonli@qq.com\",/g" /home/melonli/exp/bin2/pools.txt 
sudo sed -i "s/Hostname=.*/Hostname=$hostname/g" /etc/zabbix/zabbix_agentd.conf
